<template>
  <el-radio-group v-model="model">
    <el-radio v-for="item in enumData" :key="item.key" :value="item.key">
      {{ item.value }}
    </el-radio>
  </el-radio-group>
</template>
<script setup lang="ts">
import type { PropType } from "vue";
import type { Entry } from "@/api/types";

const model = defineModel<string | boolean>();
const props = defineProps({
  data: {
    type: Object as PropType<Entry[]>,
    default: () => []
  }
});

const enumData: Entry[] = props.data;
</script>
